<?php
class Rol {
	private $id;
	private $recursos = array ();
	private $nombre;

	public function add($value) {
		$this->recursos[] = $value;
	}

	public function getNombre() {
		return $this->nombre;
	}

	public function setNombre($value) {
		$this->nombre = $value;
	}
	public function getRecursos() {
		return $this->recursos;
	}

	public function getImplodeRecursos() {
		return implode(", ", $this->recursos);
	}

	public function setRecursos($value) {
		$this->recursos = $value;
	}

	public function getId() {
		return $this->id;
	}

	public function setId($value) {
		$this->id = $value;
	}

	function Rol() {
	}
}
?>